wasm-pack build petlib --target web --release
wasm-pack build worker --target web --release

node build_tools\replace.js petlib
node build_tools\replace.js worker

Copy-Item .\petlib\pkg\petlib.js ..\js\libs\
Copy-Item .\petlib\pkg\petlib_bg.wasm ..\js\libs\

Copy-Item .\worker\pkg\worker.js ..\workers\libs\
Copy-Item .\worker\pkg\worker_bg.wasm ..\workers\libs\